<section class="wrapper site-min-height" xmlns:th="http://www.w3.org/1999/xhtml">
    <h3><i class="fa fa-angle-right"></i> 添加课程</h3>
    <div class="row mt">
        <div class="col-lg-12">
            <div class="form-panel">
                <h4 class="mb"><i class="fa fa-angle-right"></i> 发布作业</h4>
                <form class="form-horizontal style-form">
                    <div class="form-group">
                        <label class="col-lg-2 col-sm-2 control-label">作业名称</label>
                        <div class="col-lg-4">
                            <input id="homeWorkName" type="text" class="form-control">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 col-sm-2 control-label">发布时间（为空则为当前）</label>
                        <div class="col-sm-4">
                            <input type="text" id="publishTime" class="form-control">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 col-sm-2 control-label">截止日期</label>
                        <div class="col-sm-4">
                            <input type="text" id="endTime" class="form-control">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-4 control-label">选择课程<br/></label>
                        <div class="col-sm-10" th:id="${classInfo.classId}" th:each="classInfo:${classes}">
                            <input name = "publishCheckbox" th:value="${classInfo.classId}" type="checkbox" th:text="${classInfo.className}"><br/>
                        </div>
                    </div>
                    <!--提交-->
                    <div class="form-group">
                        <label class="col-sm-2 col-sm-2 control-label"></label>
                        <div class="col-sm-10">
                            <button type="button" class="btn btn-success" th:onclick="'javascript:publishHomework('+${questionId}+')'">保存</button>
                        </div>
                    </div>
                </form>

            </div>
        </div><!-- col-lg-12-->
    </div><!-- /row -->
</section>

<script>
    $(function () {
        $("#publishTime").datetimepicker({
            format: 'yyyy-mm-dd hh:ii'
        });
    });

    $(function () {
        $("#endTime").datetimepicker({
            format: 'yyyy-mm-dd hh:ii'
         });
    });
</script>


